#ifndef USER_MANAGE
#define USER_MANAGE

#include <string>
#include <vector>
#include <fstream>
#include "../user/user.h"

class UserManager
{
public:
    bool login(std::string name,std::string password);
    bool logout();

    bool adduser(user _user);
    bool deluser(user* _user);

    user *loginedUser;
    bool logined;

    void loadDataFromLocalDataBase(std::string path);
private:
    std::vector<user> users;
};

#endif